﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FB7 RID: 4023
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueModuleInfo : IMessage<RogueModuleInfo>, IMessage, IEquatable<RogueModuleInfo>, IDeepCloneable<RogueModuleInfo>, IBufferMessage
	{
		// Token: 0x170032EE RID: 13038
		// (get) Token: 0x0600B412 RID: 46098 RVA: 0x001E61EC File Offset: 0x001E43EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueModuleInfo> Parser
		{
			get
			{
				return RogueModuleInfo._parser;
			}
		}

		// Token: 0x170032EF RID: 13039
		// (get) Token: 0x0600B413 RID: 46099 RVA: 0x001E61F3 File Offset: 0x001E43F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueModuleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170032F0 RID: 13040
		// (get) Token: 0x0600B414 RID: 46100 RVA: 0x001E6205 File Offset: 0x001E4405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueModuleInfo.Descriptor;
			}
		}

		// Token: 0x0600B415 RID: 46101 RVA: 0x001E620C File Offset: 0x001E440C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModuleInfo()
		{
		}

		// Token: 0x0600B416 RID: 46102 RVA: 0x001E621F File Offset: 0x001E441F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModuleInfo(RogueModuleInfo other) : this()
		{
			this.moduleIdList_ = other.moduleIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B417 RID: 46103 RVA: 0x001E6249 File Offset: 0x001E4449
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModuleInfo Clone()
		{
			return new RogueModuleInfo(this);
		}

		// Token: 0x170032F1 RID: 13041
		// (get) Token: 0x0600B418 RID: 46104 RVA: 0x001E6251 File Offset: 0x001E4451
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ModuleIdList
		{
			get
			{
				return this.moduleIdList_;
			}
		}

		// Token: 0x0600B419 RID: 46105 RVA: 0x001E6259 File Offset: 0x001E4459
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueModuleInfo);
		}

		// Token: 0x0600B41A RID: 46106 RVA: 0x001E6267 File Offset: 0x001E4467
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueModuleInfo other)
		{
			return other != null && (other == this || (this.moduleIdList_.Equals(other.moduleIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B41B RID: 46107 RVA: 0x001E629C File Offset: 0x001E449C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.moduleIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B41C RID: 46108 RVA: 0x001E62D0 File Offset: 0x001E44D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B41D RID: 46109 RVA: 0x001E62D8 File Offset: 0x001E44D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B41E RID: 46110 RVA: 0x001E62E1 File Offset: 0x001E44E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.moduleIdList_.WriteTo(ref output, RogueModuleInfo._repeated_moduleIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B41F RID: 46111 RVA: 0x001E6308 File Offset: 0x001E4508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.moduleIdList_.CalculateSize(RogueModuleInfo._repeated_moduleIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B420 RID: 46112 RVA: 0x001E6341 File Offset: 0x001E4541
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueModuleInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.moduleIdList_.Add(other.moduleIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B421 RID: 46113 RVA: 0x001E636F File Offset: 0x001E456F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B422 RID: 46114 RVA: 0x001E6378 File Offset: 0x001E4578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U && num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.moduleIdList_.AddEntriesFrom(ref input, RogueModuleInfo._repeated_moduleIdList_codec);
				}
			}
		}

		// Token: 0x040048CA RID: 18634
		private static readonly MessageParser<RogueModuleInfo> _parser = new MessageParser<RogueModuleInfo>(() => new RogueModuleInfo());

		// Token: 0x040048CB RID: 18635
		private UnknownFieldSet _unknownFields;

		// Token: 0x040048CC RID: 18636
		public const int ModuleIdListFieldNumber = 15;

		// Token: 0x040048CD RID: 18637
		private static readonly FieldCodec<uint> _repeated_moduleIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x040048CE RID: 18638
		private readonly RepeatedField<uint> moduleIdList_ = new RepeatedField<uint>();
	}
}
